"""
泊松分布图形
"""

import numpy as np
from scipy.stats import poisson as Pie
import matplotlib.pyplot as plt

rv = Pie(4.5)
x = np.arange(0, 11, 1)
y = rv.pmf(x)

plt.bar(x, y, width=0.6, color='gray')
plt.show()
